package com.wen.edu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author：Win
 * @Date: 2021/5/26 14:22
 * @Description: 配置 ComponentScan注解 是为了能够扫描并加载swagger配置所在的类
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.wen"})
@MapperScan("com.wen.edu.mapper")
@EnableDiscoveryClient // Nacos服务注册
@EnableFeignClients // 服务调用
@EnableCaching
public class EduTeacherClass {
    public static void main(String[] args) {
        SpringApplication.run(EduTeacherClass.class, args);
    }
}
